home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / pluginlicensedialog_base.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  4.3 KB  |  81 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_Dialog(object):
  7.     
  8.     def setupUi(self, Dialog):
  9.         Dialog.setObjectName('Dialog')
  10.         Dialog.resize(QtCore.QSize(QtCore.QRect(0, 0, 700, 500).size()).expandedTo(Dialog.minimumSizeHint()))
  11.         self.gridlayout = QtGui.QGridLayout(Dialog)
  12.         self.gridlayout.setObjectName('gridlayout')
  13.         self.StackedWidget = QtGui.QStackedWidget(Dialog)
  14.         self.StackedWidget.setObjectName('StackedWidget')
  15.         self.page = QtGui.QWidget()
  16.         self.page.setObjectName('page')
  17.         self.gridlayout1 = QtGui.QGridLayout(self.page)
  18.         self.gridlayout1.setObjectName('gridlayout1')
  19.         self.label = QtGui.QLabel(self.page)
  20.         font = QtGui.QFont()
  21.         font.setPointSize(16)
  22.         self.label.setFont(font)
  23.         self.label.setObjectName('label')
  24.         self.gridlayout1.addWidget(self.label, 0, 0, 1, 1)
  25.         self.line = QtGui.QFrame(self.page)
  26.         self.line.setFrameShape(QtGui.QFrame.HLine)
  27.         self.line.setFrameShadow(QtGui.QFrame.Sunken)
  28.         self.line.setObjectName('line')
  29.         self.gridlayout1.addWidget(self.line, 1, 0, 1, 1)
  30.         self.label_2 = QtGui.QLabel(self.page)
  31.         self.label_2.setWordWrap(True)
  32.         self.label_2.setObjectName('label_2')
  33.         self.gridlayout1.addWidget(self.label_2, 2, 0, 1, 1)
  34.         self.LicenseTextEdit = QtGui.QTextEdit(self.page)
  35.         self.LicenseTextEdit.setAutoFormatting(QtGui.QTextEdit.AutoAll)
  36.         self.LicenseTextEdit.setReadOnly(True)
  37.         self.LicenseTextEdit.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
  38.         self.LicenseTextEdit.setObjectName('LicenseTextEdit')
  39.         self.gridlayout1.addWidget(self.LicenseTextEdit, 3, 0, 1, 1)
  40.         self.AgreeCheckBox = QtGui.QCheckBox(self.page)
  41.         self.AgreeCheckBox.setObjectName('AgreeCheckBox')
  42.         self.gridlayout1.addWidget(self.AgreeCheckBox, 4, 0, 1, 1)
  43.         self.StackedWidget.addWidget(self.page)
  44.         self.gridlayout.addWidget(self.StackedWidget, 0, 0, 1, 5)
  45.         self.line_2 = QtGui.QFrame(Dialog)
  46.         self.line_2.setFrameShape(QtGui.QFrame.HLine)
  47.         self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
  48.         self.line_2.setObjectName('line_2')
  49.         self.gridlayout.addWidget(self.line_2, 1, 0, 1, 5)
  50.         spacerItem = QtGui.QSpacerItem(161, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  51.         self.gridlayout.addItem(spacerItem, 2, 1, 1, 1)
  52.         self.BackButton = QtGui.QPushButton(Dialog)
  53.         self.BackButton.setEnabled(False)
  54.         self.BackButton.setObjectName('BackButton')
  55.         self.gridlayout.addWidget(self.BackButton, 2, 2, 1, 1)
  56.         self.NextButton = QtGui.QPushButton(Dialog)
  57.         self.NextButton.setEnabled(False)
  58.         self.NextButton.setObjectName('NextButton')
  59.         self.gridlayout.addWidget(self.NextButton, 2, 3, 1, 1)
  60.         self.CancelButton = QtGui.QPushButton(Dialog)
  61.         self.CancelButton.setObjectName('CancelButton')
  62.         self.gridlayout.addWidget(self.CancelButton, 2, 4, 1, 1)
  63.         self.retranslateUi(Dialog)
  64.         self.StackedWidget.setCurrentIndex(0)
  65.         QtCore.QObject.connect(self.AgreeCheckBox, QtCore.SIGNAL('toggled(bool)'), self.NextButton.setEnabled)
  66.         QtCore.QObject.connect(self.NextButton, QtCore.SIGNAL('clicked()'), Dialog.accept)
  67.         QtCore.QObject.connect(self.CancelButton, QtCore.SIGNAL('clicked()'), Dialog.reject)
  68.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  69.  
  70.     
  71.     def retranslateUi(self, Dialog):
  72.         Dialog.setWindowTitle(QtGui.QApplication.translate('Dialog', 'HP Device Manager - Plug-in Installer', None, QtGui.QApplication.UnicodeUTF8))
  73.         self.label.setText(QtGui.QApplication.translate('Dialog', 'Driver Plug-in License Agreement', None, QtGui.QApplication.UnicodeUTF8))
  74.         self.label_2.setText(QtGui.QApplication.translate('Dialog', '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\np, li { white-space: pre-wrap; }\n</style></head><body style=" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;">\n<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Please read the driver plug-in license agreement and then check the <span style=" font-style:italic;">I agree</span> box and then click <span style=" font-style:italic;">Next</span> to continue.</p></body></html>', None, QtGui.QApplication.UnicodeUTF8))
  75.         self.AgreeCheckBox.setText(QtGui.QApplication.translate('Dialog', 'I agree to the terms of the driver plug-in license agreement', None, QtGui.QApplication.UnicodeUTF8))
  76.         self.BackButton.setText(QtGui.QApplication.translate('Dialog', '< Back', None, QtGui.QApplication.UnicodeUTF8))
  77.         self.NextButton.setText(QtGui.QApplication.translate('Dialog', 'Next >', None, QtGui.QApplication.UnicodeUTF8))
  78.         self.CancelButton.setText(QtGui.QApplication.translate('Dialog', 'Cancel', None, QtGui.QApplication.UnicodeUTF8))
  79.  
  80.  
  81.